﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace WarOfDev.Web.ViewModels
{
    public class PermissionViewModel : BaseViewModel
    {
        [Required]
        [DisplayName("Module")]
        public string ModuleId { get; set; }

        [Required]
        [DisplayName("Permission")]
        public string PermissionName { get; set; }

        [Required]
        [DisplayName("Value")]
        [DataType("Integer")]
        [Range(0, int.MaxValue)]
        public int PermissionValue { get; set; }

        public string Description { get; set; }

        public ModuleViewModel Module { get; set; }

        public bool IsSelected { get; set; }
        
    }

}